import { get, post } from "./http"
/* 注册 */
export const reqregister = (params) => post("/api/register",params)
/* 登录 */
export const reqlogin = (params) => post("/api/login",params)
export const reqgetnew = () => get("/api/getnew")
export const reqgetindexgoods = () => get("/api/getindexgoods")
export const reqgetcate = () => get("/api/getcate")
export const reqgetgoods = (params) => get("/api/getgoods",params)
export const reqgetgoodsinfo = (params) => get("/api/getgoodsinfo",params)
export const reqcartadd = (params) => post("/api/cartadd",params)
export const reqcartlist = (params) => get("/api/cartlist",params)

export const reqcartdelete = (params) => post("/api/cartdelete",params)

export const reqcartedit = (params) => post("/api/cartedit",params)

export const reqgetbanner = () => get("/api/getbanner")

export const reqgetcoupon = () => get("/api/getcoupon")